package com.yidu.t299.controller.chr;

import com.yidu.t299.domain.chr.Market;
import com.yidu.t299.service.chr.MarketBiz;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/page")
public class gongaoController {
    @Autowired
    private MarketBiz marketBiz;

    @RequestMapping("/test")
    public List<Market> selectAll(){
        List marketList = marketBiz.selectAll();
        System.out.println(marketList);
        return marketList;
    }

}
